<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>

<html:html xhtml="true">
<head>
<title><bean:message key="listestagiaires.jsp.title"/></title>
<html:base/>
</head>
<body bgcolor="rgb(75,192,198)">
<h4><bean:message key="listestagiaires.jsp.page.heading"/></h4>
<html:errors/>
<logic:messagesPresent message="true">
   <html:messages id="message" message="true">
     <bean:write name="message"/><br/>
   </html:messages>
</logic:messagesPresent>
<div >
    <html:link page="/NouveauCompte.do" >
        <bean:message key="listestagiaires.creerstagiaire"/>
    </html:link>
	<table border=3 align="center">
		<tr>
			<th><bean:message key="standard.label.nom"/></th>
			<th><bean:message key="standard.label.prenom"/></th>
			<th><bean:message key="standard.label.societe"/></th>
		</tr>
		<logic:iterate name="listeStagiaires" id="stagiaire">
			<tr>
				<td>
					<html:link page="/GestionCompte.do" paramId="identifiantStagiaire" paramName="stagiaire" paramProperty="idUtilisateur">
						<bean:write name="stagiaire" property="nom" />
					</html:link>
				</td>
				<td><bean:write name="stagiaire" property="prenom" /></td>
				<td><bean:write name="stagiaire" property="societe" /></td>
			</tr>
		</logic:iterate>
	</table>

</div>

</body>
</html:html>